<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('saveLesson')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">课程内容<span class="check-tips"></span></label>
            <div class="controls">
                <label class=" input-large" >
                    {$plan.content}
                </label>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">教学方案<span class="check-tips"></span></label>
            <div class="controls">
                <label class=" input-large" >
                    {$plan.teach_plan}
                </label>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">教学情况<span class="check-tips"></span></label>
            <div class="controls">
                <eq name="ck" value="1">
                    <label class=" input-large" >
                        {$plan.teach_situation}
                    </label>
                    <else/>
                <label class="textarea input-large" style="width: 60%;min-height: 100px;">
                    <textarea name="teach_situation"></textarea>
                </label>
                </eq>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">课后作业<span class="check-tips"></span></label>
            <div class="controls">
                <eq name="ck" value="1">
                    <label class=" input-large" >
                        {$plan.homework}
                    </label>
                    <else/>
                <label class="textarea input-large" style="width: 60%;min-height: 100px;">
                    <textarea name="homework"></textarea>
                </label>
                </eq>
            </div>
        </div>

        <notempty name="plan.grade_id">
        <div class="form-item">
            <label class="item-label">到课学生<span class="check-tips"></span></label>
            <div class="controls">
                <eq name="ck" value="1">
                    <label class=" input-large" >
                        应到：{$plan.roll_call_all|_getStudentNameAll}
                    </label><br/>
                    <label class=" input-large" >
                        实到：{$plan.roll_call|_getStudentNameAll}
                    </label>
                    <else/>
                    <php>$str='';</php>
                    <volist name="student" id="vo">
                        <php>$str .=$vo['sid'].',';</php>
                        <label class="checkbox-pretty inline">
                            <input type="checkbox" name="roll_call[]" value="{$vo.sid}"><span>{$vo.sid|_getStudentName}</span>
                        </label>
                    </volist>
                </eq>
            </div>
        </div>
            <input type="hidden"  name="roll_call_all" value="<php>echo $str;</php>" >
        </notempty>


        <gt name="plan.step" value="2">
        <div class="form-item">
            <label class="item-label">客服回访<span class="check-tips"></span></label>
            <div class="controls">
                <gt name="plan.step" value="3">
                    <label class=" input-large" >
                        {$plan.return_visit}
                    </label>
                    <else/>
                    <label class="textarea input-large" style="width: 60%;min-height: 100px;">
                        <textarea name="return_visit"></textarea>
                    </label>
                </gt>
            </div>
        </div>
        </gt>



        <div class="form-item" style="margin-top: 30px;">
            <if condition="($ck neq 1) OR ($plan.step eq 3) ">
                <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">完 成</button>
            </if>

            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            <a class="btn btn-return" href="{:U('sharecomplete?ck=1&id='.$id)}" target="_blank">分 享</a>
        </div>
        <input type="hidden"  name="id" value="{$id}" >
        <input type="hidden"  name="pay_id" value="{$plan.pay_id}" >
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        // highlight_subnav('{:U('Teaching/')}');
    </script>

</block>
